package com.qianyu.project.service.smj;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.entity.ApplyLaborPayment;

import java.util.List;
import java.util.Map;

public interface smjLaberApplyService {
    /**
     * 添加劳务付款
     * @param apply_date
     * @param payment_name
     * @param type
     * @param ctr_id
     * @param p_id
     * @param company_id
     * @param contract_amount
     * @param penalty
     * @param withhold
     * @param settle_type
     * @param bank_id
     * @param agree_amount
     * @param handler_id
     * @param agree_upper
     * @param attach_ids
     * @param settle_comment
     * @return
     */
    String AddLaberApply(String apply_date, String payment_name, String type, String ctr_id, String p_id, String company_id, String contract_amount, String penalty, String withhold, String settle_type, String bank_id, String agree_amount, String handler_id, String agree_upper, String attach_ids, String settle_comment);

    /**
     * 发起审批
     * @param applyLaborPayment
     * @return
     */
    Integer FlowLaberApply(ApplyLaborPayment applyLaborPayment);

    /**
     * 查看劳务付款列表
     * @param params
     * @return
     */
    IPage<Map<String, Object>> listLaberApply(Map<String, String> params);

    /**
     * 获取审批流程
     * @param id
     * @return
     */
    List<Map<String, Object>> getfromaudit(String id);
}
